<?php
App::uses('AppController', 'Controller');
class ProviderController extends AppController {	
	public $uses = array('Services','Category','Branches');

	public function get_services_list($category_id=0) {
		$this->layout=false;
		$this->render(false);
		$services = $this->Services->find('all',array('fields'=>array('id','name'),'conditions'=>array('category_id'=>$category_id)));
		//var_dump($services);
		echo json_encode($services);
		
	}
}
